/*
 * UpgradeFile.h
 *
 *  Created on: 2024年3月28日
 *      Author: Admin
 */

#ifndef JNI_IO_DETECTCOPY_H_
#define JNI_IO_DETECTCOPY_H_

#include <string>
#include "base/log.hpp"
#include "uart/ProtocolSender.h"
//#include "system/Thread.h"

class UpgradeFile {
private:
	UpgradeFile();
	virtual ~UpgradeFile();
public:
	bool IsFileExists(std::string path);
	static UpgradeFile* getInstance(void);
	void readyRead();
	void ProcessUpgrade(const BYTE *pData);
//public:
//	//升级文件内容
//	std::string UPGFileContent;
//	//成功读到升级文件
//	bool IsComplete;
//protected:
//	virtual bool threadLoop();
};
#define UPGRADEFILE UpgradeFile::getInstance()
#endif /* JNI_IO_DETECTCOPY_H_ */
